#pragma once
#include "DVDPlayer.h"
#include "CDPlayer.h"
#include "VCRPlayer.h"
using namespace std;

class JVCDVDPlayer : public DVDPlayer {
public:
	JVCDVDPlayer(MediaCenter* md) : DVDPlayer(md) {}
	virtual ~JVCDVDPlayer() {}

	virtual void start() {
		if (PlayerChanged("start")) {
			cout << "JVC DVD player started playing!" << endl;
		} else {
			cout << "Couldn't start JVC DVD Player!" << endl;
		}
	}

	virtual void stop() {
		if (PlayerChanged("stop")) {
			cout << "JVC DVD player stopped playing!" << endl;
		} else {
			cout << "Couldn't stop JVC DVD Player!" << endl;
		}
	}

	virtual void forward() {
		if (PlayerChanged("forward")) {
			cout << "JVC DVD player forwarded!" << endl;
		} else {
			cout << "Couldn't forward JVC DVD Player!" << endl;
		}
	}

	virtual void rewind() {
		if (PlayerChanged("rewind")) {
			cout << "JVC DVD player rewound!" << endl;
		} else {
			cout << "Couldn't rewind JVC DVD Player!" << endl;
		}
	}
};

class JVCCDPlayer : public CDPlayer {
public:
	JVCCDPlayer(MediaCenter* md) : CDPlayer(md) {}
	virtual ~JVCCDPlayer() {}
	
	virtual void start() {
		if (PlayerChanged("start")) {
			cout << "JVC CD player started playing!" << endl;
		} else {
			cout << "Couldn't start JVC CD Player!" << endl;
		}
	}

	virtual void stop() {
		if (PlayerChanged("stop")) {
			cout << "JVC CD player stopped playing!" << endl;
		} else {
			cout << "Couldn't stop JVC CD Player!" << endl;
		}
	}

	virtual void forward() {
		if (PlayerChanged("forward")) {
			cout << "JVC CD player forwarded!" << endl;
		} else {
			cout << "Couldn't forward JVC CD Player!" << endl;
		}
	}

	virtual void rewind() {
		if (PlayerChanged("rewind")) {
			cout << "JVC CD player rewound!" << endl;
		} else {
			cout << "Couldn't rewind JVC CD Player!" << endl;
		}
	}
};

class JVCVCRPlayer : public VCRPlayer {
public:
	JVCVCRPlayer(MediaCenter* md) : VCRPlayer(md) {}
	virtual ~JVCVCRPlayer() {}
	
	virtual void start() {
		if (PlayerChanged("start")) {
			cout << "JVC VCR player started playing!" << endl;
		} else {
			cout << "Couldn't start JVC VCR Player!" << endl;
		}
	}

	virtual void stop() {
		if (PlayerChanged("stop")) {
			cout << "JVC VCR player stopped playing!" << endl;
		} else {
			cout << "Couldn't stop JVC VCR Player!" << endl;
		}
	}

	virtual void forward() {
		if (PlayerChanged("forward")) {
			cout << "JVC VCR player forwarded!" << endl;
		} else {
			cout << "Couldn't forward JVC VCR Player!" << endl;
		}
	}

	virtual void rewind() {
		if (PlayerChanged("rewind")) {
			cout << "JVC VCR player rewound!" << endl;
		} else {
			cout << "Couldn't rewind JVC VCR Player!" << endl;
		}
	}
};